<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05v-for</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(user, index) in users" :key="user.index">
                {{index+1}}==>{{user.name}}==>{{user.gender}}==>{{user.age}}
                <br> 对象信息：
                <span v-for="(v,k,i) in user" :key="i">{{i}}-{{k}}:{{v}},</span>
            </li>
        </ul>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        let vm = new Vue({
            el: "#app",
            data: {
                users: [{
                    name: "张三",
                    gender: "男",
                    age: 20
                }, {
                    name: "李四",
                    gender: "男",
                    age: 10
                }, {
                    name: "刘姐",
                    gender: "女",
                    age: 28
                }, {
                    name: "冰冰",
                    gender: "女",
                    age: 21
                }, ]
            },
            methods: {

            },
        })
    </script>
</body>

</html>